package org.example.infrastructure.repository;

import org.example.infrastructure.converter.OrderConverter;
import org.example.infrastructure.dataobject.OrderDO;
import org.example.domain.repository.OrderRepository;
import org.example.domain.entity.Order;

public class OrderRepositoryImpl implements OrderRepository {

    OrderConverter orderConverter;

    public OrderRepositoryImpl() {
        this.orderConverter = OrderConverter.INSTANCE;
    }

    @Override
    public Order getOrder(String orderId) {
        OrderDO orderDO = new OrderDO();
        orderDO.setOrderId(orderId);
        orderDO.setOrderInfo("test");
        return orderConverter.fromDO(orderDO);
    }
}
